package com.ruoyi.tranShort.mapper;

import java.util.List;
import com.ruoyi.tranShort.domain.ShortMqttConfig;

/**
 * mqtt配置Mapper接口
 * 
 * @author ruoyi
 * @date 2021-08-09
 */
public interface ShortMqttConfigMapper 
{
    /**
     * 查询mqtt配置
     * 
     * @param id mqtt配置主键
     * @return mqtt配置
     */
    public ShortMqttConfig selectShortMqttConfigById(Long id);

    /**
     * 查询mqtt配置列表
     * 
     * @param shortMqttConfig mqtt配置
     * @return mqtt配置集合
     */
    public List<ShortMqttConfig> selectShortMqttConfigList(ShortMqttConfig shortMqttConfig);

    /**
     * 新增mqtt配置
     * 
     * @param shortMqttConfig mqtt配置
     * @return 结果
     */
    public int insertShortMqttConfig(ShortMqttConfig shortMqttConfig);

    /**
     * 修改mqtt配置
     * 
     * @param shortMqttConfig mqtt配置
     * @return 结果
     */
    public int updateShortMqttConfig(ShortMqttConfig shortMqttConfig);

    /**
     * 删除mqtt配置
     * 
     * @param id mqtt配置主键
     * @return 结果
     */
    public int deleteShortMqttConfigById(Long id);

    /**
     * 批量删除mqtt配置
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteShortMqttConfigByIds(Long[] ids);

    /**
     * 查询单个配置信息
     * @return
     */
    public ShortMqttConfig selectShortMqttConfig();
}
